package com.rcklos.NettyLentMe.protocol.interfaces;

import com.rcklos.NettyLentMe.protocol.protobuf.IMPackage;
import io.netty.channel.Channel;

public interface ServiceInterfaces {
    /**
     * 面向ServerHandler接收器接口
     * @param channel
     */
    void submitRead(Channel channel, IMPackage.Msg msg);

    /**
     * 面向其它类发送器接口
     * @param key 连接的唯一标识
     * @param msg 需发送的信息
     */
    void sendMessage(String key, String msg);
}
